package com.hnyfkj.jyindustry.common.exception;

/**
 * @program: jyindustry
 * @description:异常类
 * @author: zl
 * @create: 2020-07-09 18:05
 **/

public class HnyfkjBusinessException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	private String msg;
	private int code = 500;

	public HnyfkjBusinessException(final String msg) {
		super(msg);
		this.msg = msg;
	}

	public HnyfkjBusinessException(final String msg, final Throwable e) {
		super(msg, e);
		this.msg = msg;
	}

	public HnyfkjBusinessException(final String msg, final int code) {
		super(msg);
		this.msg = msg;
		this.code = code;
	}

	public HnyfkjBusinessException(final String msg, final int code, final Throwable e) {
		super(msg, e);
		this.msg = msg;
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(final String msg) {
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(final int code) {
		this.code = code;
	}

}
